package com.cuijq.ms.alipicture;

import java.awt.*;

public class ImageProcessingJob {
    private static final String BUCKET_NAME = "ai_images_bucket";
    public void process() {

        Image image = null;
        //处理图片，并封装为Image对象
        AliyunImageStore imageStore = new AliyunImageStore(/*省略参数*/);
        imageStore.createBucketIfNotExisting(BUCKET_NAME);
        String accessToken = imageStore.generateAccessToken();
        AliyunImageStore imagestore = null;
        imagestore.uploadToAliyun(image, BUCKET_NAME, accessToken);
    }
}
